package cn.fss.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.fss.business.FileConvert;
import cn.fss.common.core.controller.BaseController;
import cn.fss.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;

import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@RestController
@RequestMapping("/api/test")
@Api("对外接口")
public class ApiTestController extends BaseController {

	private static final Logger log = LoggerFactory.getLogger(ApiTestController.class);

	

	@GetMapping("testWord2Pdf")
	public AjaxResult testdevice() {
		
		String path = "/home/yinghui/dev/test/低值耗材一体机问题.docx";
		try {
			FileConvert.wordToPdf(path);
		} catch (IOException e) {
			e.printStackTrace();
		}
		return AjaxResult.success();
	}
	
}
